package com.ytjj.qmyx.supplychain.mapper;

import com.ytjj.qmyx.supplychain.common.model.request.BankerApplyRequest;
import com.ytjj.qmyx.supplychain.common.model.response.BankerApplyResponse;
import com.ytjj.qmyx.supplychain.mapper.entity.YxBankerApply;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface BankerApplyMapper extends Mapper<YxBankerApply> {

    List<BankerApplyResponse> selectList(BankerApplyRequest request);

    Integer applyStatus(@Param("bankerProductId") Integer bankerProductId, @Param("status") Integer status);

    Integer getBankerId(Integer bankerProductId);

    int deleteBankerApplyByBankerProductId(Integer bankerProductId);

}
